//
//  BaseLineView.m
//  YZNews
//
//  Created by PG on 16/8/26.
//  Copyright © 2016年 PG. All rights reserved.
//

#import "BaseLineView.h"
#import "UIView+YZTCView.h"

@implementation BaseLineView

- (instancetype)initWithFrame:(CGRect)frame isBottomBool:(BOOL)isBottomBool
{
    self = [super initWithFrame:frame];
    if (self)
    {
        CGFloat yyyyF = isBottomBool ? self.yzBottom : self.yzTop ;
        
        UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(0, yyyyF , self.yzWidth , .5)] ;
        lineView.backgroundColor = [UIColor lightGrayColor] ;
        [self addSubview:lineView] ;
        
        if (isBottomBool) lineView.yzBottom = yyyyF ;
            
    }
    return self;
}

@end
